package com.kxf.androidtestdemo.activity

import android.content.Context
import android.os.Build
import android.os.Bundle
import android.telephony.TelephonyManager
import android.util.Log
import android.view.View
import androidx.annotation.RequiresApi
import com.kxf.androidtestdemo.R

class EpicHookActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_epic_hook)
    }

    @RequiresApi(Build.VERSION_CODES.Q)
    fun onClickDeviceId(view: View) {
        var manager = getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
        Log.d(tag, "onClickDeviceId: ${manager.getTypeAllocationCode()}")
    }
}